package news.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import news.dao.SystemDao;
import news.model.News;
import news.model.SystemInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SystemService {

    @Autowired
    private SystemDao systemDao;

    public SystemInfo systemList(SystemInfo systemInfo) {
        SystemInfo systemInfo1 = systemDao.systemList(systemInfo);
        return systemInfo1;
    }

    public void saveSystem(SystemInfo systemInfo) {
        systemDao.saveSystem(systemInfo);
    }
}
